package com.maiworld.seller.service;

import java.util.List;
import java.util.Map;

import com.maiworld.api.dto.CoachCommentUser;
import com.maiworld.api.dto.CoachDTO;
import com.maiworld.api.vo.ResultVO;
import com.maiworld.pojo.TbCoach;

import entity.PageResult;

public interface CoachService {

	
	
	public List<TbCoach> findAll();
	
	public PageResult findPage(int pageNum, int pageSize);
	
	public void add(TbCoach coach);
	
	public void update(TbCoach coach);
	
	public TbCoach findOne(Long cid);
	
	public void delete(Long[] cids);
	
	public PageResult findPageCoach( TbCoach coach , int pageNum , int pageSize);
	
	/**
	 * 更新状态
	 * @param cid
	 * @param authentication
	 */
	public void updateAuthentication(Long cid , String authentication);
	
	/**
	 * 查询教练详情
	 * @param openid
	 * @return
	 */
	/*public ResultVO<CoachDTO> findOne(String openid);*/
	
	/*public List<Map> selectByOpenid(String id);*/
	
	public ResultVO<CoachCommentUser> findCoachDetail(String id);
	
	/**
	 * 查询教练科目
	 * @param subject
	 * @return
	 */
	public Map<String, Object> findSubject(String subject,String indoor,String Status);
	
	/**
	 * 修改教练信息
	 */
	public Map<String, Object> updateCoach(Map<String,String> params);
	
	/**
	 * 教练登陆
	 */
	public Map<String, Object> login(String openid,String nickname, String head_pic);
	
	/**
	 * 更新状态手机端
	 */
	public Map<String, Object> updaAuthentication(Map<String, String> parmes);
	
	/**
	 * 获取 某个教练 某个日气的学员
	 */
	public Map<String, Object> mystudent(Long cid, String openid, String status, String date);
	
	//获取工单 已预约 已完成
	public Map<String, Object> selectappointment(Long cid, String openid, String status, String checkStatus,String date);
	
	//修改状态 确定为已完成 未完成	
	public Map<String, Object> updateCheckStatus (Long reservationId, String status, String checkStatus,String openid);
	
}
